/**
 * @type {import('@vue/cli-service').ProjectOptions}
 */
// const { defineConfig } = require('@vue/cli-service')
module.exports = {
  lintOnSave: false,
  runtimeCompiler: true,
  publicPath: "/team2/",
  // 输出文件目录
  outputDir: "dist",
  productionSourceMap: false,
  // webpack-dev-server 相关配置
  devServer: {
    port: "8082",
    https: false,
    historyApiFallback: {
      index: "/team2/index.html",
      //与output的publicPath有关(HTMLplugin生成的html默认为index.html)
    },
    hot: false,
    // historyApiFallback: true,
    proxy: {
      "/api": {
        target: "http://49.232.20.204:8082",
        //  "http://47.92.117.219:8082",
        changeOrigin: true,
        pathRewrite: {
          "^/api": "",
        },
      },
    },
  },
};
